package com.robinmouren.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "logistics.jwt")
@Data
public class JwtProperties {


    private String secretKey;
    private long ttl;
    private String tokenName;


    /**
     * 客户端
     */
    private String clientSecretKey;
    private long clientTtl;
    private String clientTokenName;

    /**
     * 承运商
     */
    private String carriersSecretKey;
    private long carriersTtl;
    private String carriersTokenName;


    /**
     * 司机
     */
    private String driverSecretKey;
    private long driverTtl;
    private String driverTokenName;
}
